﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Tomato.App
{
    public class ServiceModelResult : JsonResult
    {
        public ServiceModelResult(object serviceModel)
        {
            Data = serviceModel;
        }

        public override void ExecuteResult(ControllerContext context)
        {
            JsonRequestBehavior = System.Web.Mvc.JsonRequestBehavior.AllowGet;
            base.ExecuteResult(context);
        }
    }
}
